package com.cgwx.service.impl;

import com.cgwx.entity.UsRole;
import com.cgwx.mapper.RoleMapper;
import com.cgwx.service.IRoleService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements IRoleService {

    @Resource
    private RoleMapper roleMapper;
    public List<UsRole> getAllRole(){
        return roleMapper.getAllRole();
    }

    @Override
    public List<UsRole> getRole(UsRole role) {
        return roleMapper.getRole(role);
    }

}

